package Lecture_20;

import java.io.IOException;

public class Person {

	private String name;
    //SVN TEST COMMENTS
	void setName(String name) {
		this.name = name;
	}

	boolean hasSameName(Person other) throws PersonException {

		int[] x = new int[3];
		if (10 < x.length)
			x[10] = 4;

		try {

			boolean b = this.name.equals(other.name);
			throw new IOException();
			// System.out.println("some text between all");
			// return b;
		} catch (IOException e) {
			System.out.println("io catched");
			throw new PersonException("Person failed", e);
		} catch (Exception e) {
			System.out.println("global catched");
			throw new PersonException("Person failed", e);
		}
  //server modification
	}
}
